﻿@inherits BootstrapChildContentComponentBase
@namespace Bootstrap5

<div class="modal @(Fade?"fade":"")" tabindex="-1" @attributes="AdditionalAttributes">
	<div class="@(GetCssClassString())">
		<div class="modal-content">
			<div class="modal-header">
				@if (HeadContent is not null)
				{
					<div class="modal-title">@HeadContent</div>
				}
				@if (Closable)
				{
					<CloseButton data-bs-dismiss="modal" />
				}
			</div>
			<div class="modal-body">
				@ChildContent
			</div>
			@if (FootContent is not null)
			{
				<div class="modal-footer">
					@FootContent
				</div>
			}
		</div>
	</div>
</div>